import { CustomElement } from '@/plugins/types';

export const initialValue: CustomElement[] = [
  {
    children: [
      {
        text: '测试标题1',
      },
    ],
    heading: {
      level: 1,
    },
  },
  {
    children: [
      {
        text: '测试标题2',
      },
    ],
    heading: {
      level: 2,
    },
  },
  {
    children: [
      {
        text: '测试标题3',
      },
    ],
    heading: {
      level: 3,
    },
  },
  {
    children: [
      {
        text: '测试标题4',
      },
    ],
    heading: {
      level: 4,
    },
  },
  {
    children: [
      {
        text: '测试标题5',
      },
    ],
    heading: {
      level: 5,
    },
  },
  {
    children: [
      {
        text: '测试标题6',
      },
    ],
    heading: {
      level: 6,
    },
  },
  {
    children: [
      {
        children: [
          {
            text: 'u1',
          },
        ],
        'unordered-list-item': {
          level: 1,
        },
      },
      {
        children: [
          {
            text: 'u2',
          },
        ],
        'unordered-list-item': {
          level: 2,
        },
      },
      {
        children: [
          {
            text: 'u3',
          },
        ],
        'unordered-list-item': {
          level: 3,
        },
      },
    ],
    'unordered-list': true,
  },
  {
    'quote-list': true,
    children: [
      {
        'quote-list-item': true,
        children: [
          {
            text: '引用',
          },
        ],
      },
    ],
  },
  {
    'code-block': {
      language: 'java',
    },
    children: [
      {
        'code-block-item': true,
        children: [
          {
            text: 'const a = 10',
          },
        ],
      },
    ],
  },
  {
    children: [
      {
        text: '加粗',
        bold: true,
      },
      {
        text: '斜体',
        italic: true,
      },
      {
        text: '下划线',
        underline: true,
      },
      {
        text: '删除线',
        strikethrough: true,
      },
      {
        text: '行内代码块',
        'inline-code': true,
      },
    ],
  },
  {
    children: [
      {
        text: '左对齐',
      },
    ],
    align: {
      left: true,
    },
  },
  {
    children: [
      {
        text: '居中对齐',
      },
    ],
    align: {
      center: true,
    },
  },
  {
    children: [
      {
        text: '右对齐',
      },
    ],
    align: {
      right: true,
    },
  },
  {
    children: [
      {
        text: '字号12px',
        'style-base': {
          fontSize: 12,
          color: 'red',
          backgroundColor: 'yellow',
        },
      },
      {
        text: '字号20px',
        'style-base': {
          fontSize: 20,
        },
      },
    ],
  },
];
